<div class="nav">
    <a class="sel" href="{:U('index')}">规格列表</a>
    <a href="{:U('add')}">添加规格</a>
</div>
<div class="list">
    <table class="table_list">
        <thead><tr>
                <td>规格名称</td>
                <td>类型</td>
                <td>规格值</td>
                <td>顺序编号</td>
                <td>是否启用</td>
                <td width="180">操作</td>
            </tr>
        </thead>
        <tbody>
        <foreach name="list" item="list">
            <tr>
                <td>{$list.spec_name}</td>
                <td width="60px">
                    <switch name="list.spec_type">
                        <case value="1">文字</case>
                        <case value="2">图片</case>
                    </switch></td>
                <td>{$list.spec_value}</td>
                <td width="60px" class="edit_input" attr_t="order_id" attr_id="{$list.spec_id}">{$list.order_id}</td>
                <td width="60px" class="edit_toggle" attr_t="is_enable" attr_id="{$list.spec_id}">{$list.is_enable}</td>
                <td width="120px" >
                    <a class="btn_a" href="{:U('edit',Array('spec_id'=>$list['spec_id']))}">修改</a>&nbsp;
                    <a class="btn_a2" href="{:U('del',Array('spec_id'=>$list['spec_id']))}" onclick="return confirm('确定删除吗？')">删除</a>
                </td>
            </tr>
        </foreach>
        </tbody>
        <tfood>
            <tr><td colspan="6">{$page}</td></tr>
        </tfood>
    </table>
</div>
